<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<script src="js/ajax.js"></script>

<script>
	function check() {
		//1.获取ajax对象
		var xhr = getXhr();
		//2.发送请求
		
		var uri='check.do?adminCode=' + $F('adminCode');
		
		xhr.open('get', encodeURI(uri), true);

		xhr.onreadystatechange = function() {
			//4.处理服务器返回的数据
			if (xhr.readyState == 4 && xhr.status == 200) {
				//获取服务器返回的数据
				var txt = xhr.responseText;
				/* alert(txt); */
				
				$('msg').innerHTML=txt;

			}

		};

		xhr.send(null);

	}
</script>
</head>
<body style="fint-size: 30px;">
	<form action="check11.do">
		账号:<input id="adminCode" type="text" name="adminCode"
			onblur="check();" />
			
		<span id="msg"></span><br/>
			
		密码:<input type="password" name="pwd" />
		<input type="submit" value="确定" />

	</form>



</body>
</html>